#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_btn_cal_clicked()
{
    int num = ui->sb_num->value();
    double price = ui->dsb_price->value();
    ui->dsb_sum->setValue(num * price);
}

